home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Developer University / DUProjects / Talker / Sources / SOMPart.idl < prev    next >
Encoding:
Text File  |  1995-10-06  |  4.4 KB  |  183 lines  |  [TEXT/CWIE]

  1. #ifdef __PRIVATE__
  2. //#
  3. //#    File:        SOMPart.idl
  4. //#
  5. //#    Contains:    Interface for Talker class
  6. //#
  7. //#    Copyright:    (C) 1993-1995 by Apple Computer, Inc., all rights reserved.
  8. //#
  9. #else
  10. //#    Copyright:    (C) 1993-1995 by Apple Computer, Inc., all rights reserved.
  11. #endif
  12.  
  13. #ifndef SOMPART_IDL
  14. #define SOMPART_IDL
  15.  
  16. #ifndef FWENVDEF_IDL
  17. #include "FWEnvDef.idl"
  18. #endif
  19.  
  20. #ifndef _PART_
  21. #include "Part.idl"
  22. #endif
  23.  
  24. //==============================================================================
  25. // Constants
  26. //==============================================================================
  27.  
  28. //==============================================================================
  29. // Classes defined in this interface
  30. //==============================================================================
  31.  
  32. //==============================================================================
  33. // Classes used by this interface
  34. //==============================================================================
  35.  
  36. interface  ODCanvas;
  37. interface  ODFacet;
  38. interface  ODFrame;
  39. interface  ODLink;
  40. interface  ODLinkSource;
  41. interface  ODShape;
  42. interface  ODStorageUnit;
  43. interface  ODStorageUnitView;
  44. interface  ODTransform;
  45. interface  ODDragItemIterator;
  46. interface  ODSession;
  47. interface  ODTypeList;
  48. interface  ODObjectSpec;
  49. interface  ODEmbeddedFramesIterator;
  50.  
  51. typedef somToken FW_CPart;
  52.  
  53. //==============================================================================
  54. // Talker
  55. //==============================================================================
  56.  
  57. module DevUniv
  58. {
  59.     interface Talker : ODPart
  60.     {
  61.         //-------------------------------------------------------------------------
  62.         // New protocol
  63.         //-------------------------------------------------------------------------
  64.         FW_CPart*     GetFrameworkPart();
  65.         FW_CPart*    NewFrameworkPart(in ODPart partWrapper);
  66.     
  67. #ifdef __SOMIDL__
  68.         implementation
  69.         {
  70.             functionprefix = Talker;
  71.             
  72.             passthru C_xh =
  73.                 "#if FW_LIB_EXPORT_PRAGMAS" 
  74.                 "#pragma lib_export on"
  75.                 "#endif"
  76.                 "class FW_CPart;"
  77.                 "#if FW_LIB_EXPORT_PRAGMAS" 
  78.                 "#pragma lib_export off"
  79.                 "#endif";
  80.             
  81.             override:
  82.                 somInit,
  83.                 somUninit,        
  84.                 Release,
  85.                 ReleaseAll,
  86.                 Externalize,
  87.                   CloneInto,
  88.                  HasExtension,
  89.                 AcquireExtension,
  90.                 ReleaseExtension,
  91.                 Purge,        
  92.                 InitPart,
  93.                 InitPartFromStorage,
  94.                 DisplayFrameAdded,
  95.                 DisplayFrameRemoved,
  96.                 DisplayFrameConnected,
  97.                 DisplayFrameClosed,
  98.                    AttachSourceFrame,
  99.                 FrameShapeChanged,
  100.                 ViewTypeChanged,
  101.                 PresentationChanged,
  102.                 SequenceChanged,
  103.                 LinkStatusChanged,
  104.                 ContainingPartPropertiesUpdated,
  105.                 ReadPartInfo,
  106.                 WritePartInfo,
  107. #if FW_OPENDOC_VERSION >= FW_OPENDOC_DR2
  108.                 ClonePartInfo,
  109. #endif
  110.                 Open,
  111.                 Draw,
  112.                 FacetAdded,
  113.                 FacetRemoved,
  114.                 GeometryChanged,
  115.                 HighlightChanged,
  116.                 CanvasChanged,
  117.                 CanvasUpdated,
  118.                 GetPrintResolution,
  119.                 BeginRelinquishFocus,
  120.                 CommitRelinquishFocus,
  121.                 AbortRelinquishFocus,
  122.                 FocusAcquired,
  123.                 FocusLost,
  124.                 ExternalizeKinds,
  125.                 ChangeKind,
  126.                 HandleEvent,
  127.                 AdjustMenus,
  128.                 UndoAction,
  129.                 RedoAction,
  130.                 DisposeActionState,
  131.                 WriteActionState,
  132.                 ReadActionState,
  133.                 FulfillPromise,
  134.                 DropCompleted,
  135.                 DragEnter,
  136.                 DragWithin,
  137.                 DragLeave,
  138.                 Drop,
  139.                 CreateLink,
  140.                 RevealLink,
  141.                 LinkUpdated,
  142.                 EmbeddedFrameUpdated,
  143. #if FW_OPENDOC_VERSION >= FW_OPENDOC_DR2
  144.                 EditInLinkAttempted,
  145. #endif
  146.                 RequestEmbeddedFrame,
  147.                 RemoveEmbeddedFrame,
  148.                 RequestFrameShape,
  149.                 UsedShapeChanged,
  150.                 AdjustBorderShape,
  151.                 AcquireContainingPartProperties,
  152.                 RevealFrame,
  153.                 EmbeddedFrameSpec,
  154. #if FW_OPENDOC_VERSION < FW_OPENDOC_DR2
  155.                 MouseEnter,
  156.                 MouseWithin,
  157.                 MouseLeave,
  158.                 HandleEventInEmbedded,
  159. #endif
  160.                 CreateEmbeddedFramesIterator;
  161.         
  162.             releaseorder:
  163.                 GetFrameworkPart,
  164.                 NewFrameworkPart,
  165.             
  166.             majorversion = 1; minorversion = 0;
  167.             
  168.             //# Put all forward class declarations and #includes for types that
  169.             //# are private to the implementation. These ( probably ) are non-som objects that will
  170.             //# not be passed THRU some ever ( as I understand it ).
  171.             passthru C_xih = "class FW_CPart;";
  172.         
  173.             // instance variables
  174.             FW_CPart*    fFrameworkPart;
  175.         };
  176. #endif
  177.     };
  178.  
  179. };
  180.  
  181.  
  182. #endif
  183.